package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the roleallocation database table.
 * 
 */
@Entity
@Table(name="roleallocation")
@NamedQuery(name="Roleallocation.findAll", query="SELECT r FROM Roleallocation r")
public class Roleallocation implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String uallid;

	//bi-directional many-to-one association to Role
	@ManyToOne
	@JoinColumn(name="rid")
	private Role role;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staffid")
	private Staff staff;

	public Roleallocation() {
	}

	public String getUallid() {
		return this.uallid;
	}

	public void setUallid(String uallid) {
		this.uallid = uallid;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}